/* ===========================
   CONTENEDOR GENERAL
   =========================== */

.content-formulario {
  width: 100%;
  max-width: 720px;
  margin: 60px auto;
  position: relative;
  font-family: 'Montserrat', sans-serif;
}

/* Card principal del formulario */
.content-formulario fieldset.main {
  min-width: 100%;
  display: block;
  border: none !important;
  border-radius: 16px;
  padding: 2.5rem 2rem 2rem;
  background: #ffffff;
    
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.06);
  box-sizing: border-box;
}

/* ===========================
   TÍTULOS
   =========================== */

.titulo {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
  color: #2b2440;
}

.content-formulario > .main > .titulo.welcome {
  line-height: 1.5;
  font-size: 1.9rem;
}

/* ===========================
   LOADING
   =========================== */

.loading {
  display: none;
  position: absolute;
  inset: 0;
  max-width: 720px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.86);
  z-index: 999;
  padding: 18vh 0 0;
  text-align: center;
  box-sizing: border-box;
}

.loading-main {
  opacity: 0.35;
}

.loading-circle {
  height: 40px;
  width: 160px;
  overflow: hidden;
}

/* ===========================
   INPUTS Y LABELS
   =========================== */

.content-formulario fieldset label,
.content-formulario fieldset span,
.content-formulario fieldset input {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  color: #2b2440;
}

.content-formulario fieldset input,
.content-formulario fieldset select {
  border: 1px solid #c9c9d6;
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.content-formulario fieldset input:focus,
.content-formulario fieldset select:focus {
  outline: none;
  border-color: #7f278d;
  box-shadow: 0 0 0 3px rgba(127, 39, 141, 0.18);
}

.hs-custom-style fieldset input:not([type=image]):not([type=submit]):not([type=button]):not([type=radio]):not([type=checkbox]):not([type=file]) {
  margin-top: 10px;
  margin-bottom: 0;
  padding: 0.65rem 0.9rem !important;
}

/* Fix extensión teléfono */
#phone_ext-c8259451-1e13-4b41-a169-767cda4696e7 {
  margin-top: 10px;
}

/* ===========================
   PASOS 1 – 2 – 3
   =========================== */

.pasos-a-seguir {
  width: 100%;
  max-width: 720px; 
  margin: 2rem 0 0 0; 
  padding: 1.5rem 2rem;
  
  display: flex;
  flex-direction: column;
  gap: 1rem;

  background: #ffffff;
  border-radius: 30px;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.05),
    0 9px 18px rgba(127, 39, 141, 0.10);
}

.pasos__item {
  display: flex;
  align-items: center;
}

.pasos__left {
  background: #7F278D;
  color: white;
  font-size: 1rem;
  font-weight: 700;
  width: 2.4rem;
  height: 2.4rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(127, 39, 141, 0.40);
}

.pasos__right {
  margin-left: 1rem;
  font-size: 1.1rem;
  font-weight: 500;
  color: #374b6d;
}


/* ===========================
   VISIBILIDAD DE STEPS
   =========================== */

.step3,
.step4,
.step5,
.step6,
.step7,
.step8,
.step9,
.step10,
.step11,
.step12,
.step13,
.step14,
.step15,
.step16,
.step17,
.step18,
.step19,
.step20,
.hs_submit {
  display: none;
}

.step9 {
  margin-top: 20px !important;
}

/* ===========================
   RESULTADOS / MENSAJES
   =========================== */

.result {
  display: none;
  margin-top: 1rem;
  margin-bottom: 1.75rem;
  padding: 0.9rem 0.9rem;
  width: 100%;
  font-size: 0.9rem;
  border-radius: 10px;
  box-sizing: border-box;
}

.mDone {
  background: #e2f9e1;
  color: #17462c;
}

.mError {
  background: #ffe0ea;
  color: #3f1a22;
}

.c-help {
  position: relative;
  margin-top: 0.4rem;
  background: transparent;
}

a.help {
  background: transparent !important;
  border: none !important;
  color: #3461ff !important;
  display: inline !important;
  font-size: 0.8rem !important;
  font-weight: 500 !important;
  padding: 0 !important;
  text-align: left !important;
}

/* ===========================
   BOTONES
   =========================== */

form .hs-button,
form input[type=submit] {
  background-color: #7f278d;
  border: 2px solid #7f278d;
  color: #ffffff;
  cursor: pointer;
  display: block;
  width: 100%;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.9rem 1rem;
  border-radius: 999px;
  transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

form .hs-button:hover,
form input[type=submit]:hover,
form input[type='submit']:focus,
form .hs-button:focus {
  background-color: #661f72;
  border-color: #661f72;
  box-shadow: 0 10px 24px rgba(127, 39, 141, 0.35);
  transform: translateY(-1px);
}

.boton a,
a.botonFinal {
  display: block;
  text-align: center;
  background-color: #7f278d;
  border: 2px solid #7f278d;
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 0.7rem 1.1rem;
  margin-top: 0.9rem;
  border-radius: 999px;
  transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.boton a:hover,
a.botonFinal:hover {
  background-color: #661f72;
  border-color: #661f72;
  box-shadow: 0 8px 20px rgba(127, 39, 141, 0.3);
  transform: translateY(-1px);
}

/* Botón de “siguiente” oculto al inicio */
#btnIniciar {
  display: none;
}

/* ===========================
   TIMER
   =========================== */

label#time {
  display: inline-block;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
}

/* ===========================
   SELECTS UBIGEO
   =========================== */

select.lista,
select.hs-input {
  width: 100%;
  padding: 0.65rem 0.9rem;
  margin-top: 0.8rem;
  margin-bottom: 1rem;
  box-sizing: border-box;
  border-radius: 8px;
  border: 1px solid #c9c9d6;
  font-family: 'Montserrat', sans-serif;
}

/* Ocultar por defecto */
.provincias,
.distritos {
  display: none;
}

/* ===========================
   CHECKBOXES
   =========================== */

li.hs-form-booleancheckbox {
  margin-left: 8px;
}

label.hs-form-booleancheckbox-display {
  line-height: 1.2;
}

label.hs-form-booleancheckbox-display span {
  margin-left: 0.8rem;
  font-size: 0.8rem;
}
/* ===========================
BOTON  BENEFICIOS
   =========================== */

/* ===========================
   BENEFICIOS
   =========================== */

.hs_error_rollup {
  margin: 10px 0;
}

.hs-error-msg,
.no-list.hs-error-msgs.inputs-list .hs-error-msg,
.no-list.hs-error-msgs.inputs-list .hs-main-font-element {
  display: none;
}

label.hs-error-msg {
  color: #e02041;
  display: none;
}

label.hs-main-font-element {
  color: #e02041;
}

/* ===========================
   MENSAJE DE GRACIAS
   =========================== */

.submitted-message {
  padding-top: 2.5rem;
  text-align: center;
}

.submitted-message p {
  font-size: 1.7rem;
  line-height: 1.35;
  margin: 0 auto;
  max-width: 80%;
  color: #2b2440;
}

.submitted-message p em {
  font-size: 1.1rem;
  display: block;
  margin-top: 1.2rem;
  font-style: normal;
}

.submitted-message p a {
  color: #47476f;
  text-decoration: underline;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.4rem 0;
}

/* ===========================
   ACORDEÓN REPRESENTANTES
   =========================== */

.accordion {
  background-color: #f7f6fb;
  color: #2b2440;
  cursor: pointer;
  font-size: 0.85rem;
  outline: none;
  padding: 0.85rem 0.9rem;
  text-align: left;
  transition: background-color 0.2s ease, color 0.2s ease;
  width: 100%;
  border: 1px solid #dedcec;
  border-radius: 8px;
  margin-bottom: 0.4rem;
}

.activar,
.accordion:hover {
  background-color: #e5ddff;
}

.panelx {
  background-color: #ffffff;
  display: none;
  overflow: hidden;
  padding: 0.9rem 1rem 1.2rem;
  border: 1px solid #dedcec;
  border-radius: 0 0 12px 12px;
  border-top: none;
  box-sizing: border-box;
}

.panelx h4 {
  margin: 0.6rem 0 0.4rem;
  color: #2b2440;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
}

.panelx p {
  font-size: 0.85rem;
  margin: 0.5rem 0 0.9rem;
  color: #494567;
  font-family: 'Montserrat', sans-serif;
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 767px) {
  .content-formulario {
    margin: 40px auto;
    width: 100%;
    padding: 0 1rem;
  }

  .content-formulario fieldset.main {
    padding: 1.8rem 1.4rem 1.6rem;
    border-radius: 14px;
  }

  .content-formulario > .main > .titulo {
    line-height: 1.3;
    font-size: 2rem;
  }

  .titulo {
    font-size: 2.1rem;
  }

  .loading {
    max-width: 100%;
    padding: 20vh 0 180px;
  }

  .submitted-message p {
    font-size: 1.4rem;
  }

  .pasos-a-seguir {
    border-radius: 12px;
    padding: 0.4rem 0.7rem;
  }
}

/* ===========================
   MEJORAS DE ESPACIADO / VISTAS
   =========================== */

.form-row {
  margin-top: 14px;
}

.form-row label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #2b2440;
}

.form-row input,
.form-row select {
  width: 100%;
}

.btn-row {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

.btn-row .btn {
  flex: 1;
}

.btn {
  background-color: #7f278d;
  border: 2px solid #7f278d;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.95rem 1rem;
  border-radius: 999px;
  transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease, opacity .2s ease;
}

.btn:hover {
  background-color: #661f72;
  border-color: #661f72;
  box-shadow: 0 10px 24px rgba(127, 39, 141, 0.25);
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.helper-text {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #6b6287;
  line-height: 1.35;
}

.section-gap {
  margin-top: 22px;
}

/* Ocultamos inputs que son solo para almacenar data */
.hidden-store {
  display: none !important;
}

/* Ajuste acordeón para que se vea más “card” */
.panelx {
  border-radius: 14px;
  border-top: 1px solid #dedcec;
  margin-bottom: 14px;
}

.accordion {
  font-weight: 600;
  border-radius: 12px;
  padding: 0.95rem 1rem;
}

.panelx iframe {
  border-radius: 12px;
}

/* CTA dentro del panel */
a.botonFinal {
  margin-top: 14px;
}


@media (max-width: 991px) and (min-width: 768px) {
    .top_band-container [class*=zpimage-size].zpimage-tablet-fallback-fit figure img {
        width: 100%!important;;
        height: 50px !important;
    }
}
@media (max-width: 767px) {
    .top_band-container [class*=zpimage-size].zpimage-mobile-fallback-fit figure img {
        width: 100%!important;
        height: 50px !important;
    }
    
    .top_band-container [class*=zpimage-size].zpimage-tablet-fallback-fit figure img{
            padding: 6px!important;
    }
}


@media(max-width:766px){
.content-formulario fieldset.main{
    margin-left: 16px;
    }
    .pasos-a-seguir{
    margin-left: 16px;
    }
}